home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / PENWOEM.H < prev    next >
C/C++ Source or Header  |  1993-11-23  |  3KB  |  76 lines

  1. /*****************************************************************************\
  2. *                                                                             *
  3. * penwoem.h -   Pen Windows APIs into recognizer layer.                       *
  4. *               Assumes windows.h and penwin.h have been previously included. *
  5. *                                                                             *
  6. *               Version 1.0                                                   *
  7. *                                                                             *
  8. *               Copyright (c) 1992, Microsoft Corp.  All rights reserved.     *
  9. *                                                                             *
  10. \*****************************************************************************/
  11.  
  12. #ifndef _INC_PENWOEM     /* prevent multiple includes */
  13. #define _INC_PENWOEM
  14.  
  15. #ifndef RC_INVOKED
  16. #pragma pack(1)
  17. #endif /* RC_INVOKED */
  18.  
  19. #ifdef __cplusplus
  20. extern "C" {            /* Assume C declarations for C++ */
  21. #endif    /* __cplusplus */
  22.  
  23. typedef int (CALLBACK *LPFUNCRESULTS) (LPRCRESULT, REC);
  24.  
  25. /* Initialization Functions */
  26.  
  27. #define WCR_RECOGNAME          0
  28. #define WCR_QUERY              1
  29. #define WCR_CONFIGDIALOG       2
  30. #define WCR_DEFAULT            3
  31. #define WCR_RCCHANGE           4
  32. #define WCR_VERSION            5
  33. #define WCR_TRAIN              6
  34. #define WCR_TRAINSAVE          7
  35. #define WCR_TRAINMAX           8
  36. #define WCR_TRAINDIRTY         9
  37. #define WCR_TRAINCUSTOM        10
  38. #define WCR_QUERYLANGUAGE      11
  39. #define WCR_USERCHANGE         12
  40. #define WCR_PRIVATE            1024
  41.  
  42. /* sub-function of WCR_USERCHANGE */
  43. #define CRUC_REMOVE            1
  44.  
  45. /* Return values for WCR_TRAIN Function */
  46. #define TRAIN_NONE             0x0000
  47. #define TRAIN_DEFAULT          0x0001
  48. #define TRAIN_CUSTOM           0x0002
  49. #define TRAIN_BOTH             (TRAIN_DEFAULT | TRAIN_CUSTOM)
  50.  
  51. /* Control values for TRAINSAVE */
  52. #define TRAIN_SAVE             0  /* Save changes that have been made */
  53. #define TRAIN_REVERT           1  /* Discard changes that have been made */
  54.  
  55. UINT WINAPI ConfigRecognizer(UINT, WPARAM, LPARAM);
  56. BOOL WINAPI InitRecognizer(LPRC);
  57. VOID WINAPI CloseRecognizer(VOID);
  58.  
  59. /* Recognition Functions */
  60. REC  WINAPI RecognizeInternal(LPRC, LPFUNCRESULTS);
  61. REC  WINAPI RecognizeDataInternal(LPRC, HPENDATA, LPFUNCRESULTS);
  62.  
  63. /* Training Functions */
  64. BOOL WINAPI TrainInkInternal(LPRC, HPENDATA, LPSYV);
  65. BOOL WINAPI TrainContextInternal(LPRCRESULT, LPSYE, int, LPSYC, int);
  66.  
  67. #ifdef __cplusplus
  68. }
  69. #endif    /* __cplusplus */
  70.  
  71. #ifndef RC_INVOKED
  72. #pragma pack()
  73. #endif /* RC_INVOKED */
  74.  
  75. #endif /* #define _INC_PENWOEM */
  76.